package jrmob.yonyou.com.commonlib.baseui.base;

import android.app.Activity;

import com.yonyou.uap.um.base.UMEventArgs;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import jrmob.yonyou.com.commonlib.BaseMultiDexApplication_lib;
import jrmob.yonyou.com.commonlib.vo.AppVO_ap;

/**
 * 全局application
 * Created by zhangguang on 16/10/22.
 */

public class BaseApp_lib extends BaseMultiDexApplication_lib {

    private static BaseApp_lib baseApp ;
    public static UMEventArgs umeventargs; // h5上下问环境
    private static String ip;
    private static String port;
    private static String userid;
    public static Activity mact = null;

    // 移动审批ip
    private static String ip_ma;
    // 移动审批port
    private static String port_ma;

    // 国开行ip
    private static String ip_gkh;
    // 国开行port
    private static String port_gkh;

    // 任务管理ip
    private static String ip_task;
    // 任务管理port
    private static String port_task;

    private static Map map_app;

    public static Map getMap_app(){
        return map_app;
    }

    private static List<AppVO_ap> appslist;
    public static List<AppVO_ap> getAppslist() {
        if (null == appslist) {
            appslist = new ArrayList<AppVO_ap>();
        }
        return appslist;
    }

    public static void setAppslist(ArrayList<AppVO_ap> appslist1) {
        appslist = appslist1;
    }

    public static String getPort_task() {
        return port_task;
    }

    public static void setPort_task(String port_task) {
        BaseApp_lib.port_task = port_task;
    }

    public static String getIp_task() {
        return ip_task;
    }

    public static void setIp_task(String ip_task) {
        BaseApp_lib.ip_task = ip_task;
    }





    public static String getPort_gkh() {
        return port_gkh;
    }

    public static void setPort_gkh(String port_gkh) {
        BaseApp_lib.port_gkh = port_gkh;
    }

    public static String getIp_ma() {
        return ip_ma;
    }

    public static void setIp_ma(String ip_ma) {
        BaseApp_lib.ip_ma = ip_ma;
    }

    public static String getPort_ma() {
        return port_ma;
    }

    public static void setPort_ma(String port_ma) {
        BaseApp_lib.port_ma = port_ma;
    }

    public static String getIp_gkh() {
        return ip_gkh;
    }

    public static void setIp_gkh(String ip_gkh) {
        BaseApp_lib.ip_gkh = ip_gkh;
    }



    @Override
    public void onCreate() {
        super.onCreate();
        baseApp = this;
        map_app = new HashMap();
    }

    public static BaseApp_lib getBaseApp(){
        return baseApp;
    }

    public static String getUserid() {
        return userid;
    }

    public static void setUserid(String userid) {
        BaseApp_lib.userid = userid;
    }


    public static String getIp() {
        return ip;
    }

    public static void setIp(String ip) {
        BaseApp_lib.ip = ip;
    }

    public static String getPort() {
        return port;
    }

    public static void setPort(String port) {
        BaseApp_lib.port = port;
    }



}
